package Thread;

public class CreateThread4 {
    public static void main(String[] args) {
        Runnable runnable = new Runnable() {
            @Override
            public void run() {
                for (int i = 0; i < 100; i++) {
                    System.out.println(i);
                }
            }
        };

        Thread thread = new Thread(runnable);

        thread.start();
    }
}
